<?php /* Smarty version 2.3.0, created on 2011-08-22 00:25:19
         compiled from Default/mostrarcategorias.tpl */ ?>
<TABLE WIDTH=404 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<MAP NAME="atras_cerrar">
  <AREA shape="rect" COORDS="0,0,15,34"  HREF="javascript:window.history.back()"  ALT="atras">
  <AREA shape="rect" COORDS="15,0,34,34"  HREF="javascript:window.close()"  ALT="cerrar">
 </MAP>

	<TR>
		<TD>
			<IMG SRC="<?php echo $this->_tpl_vars['conf']['images_html']; ?>
/spacer.gif" WIDTH=11 HEIGHT=1></TD>
		<TD>
			<IMG SRC="<?php echo $this->_tpl_vars['conf']['images_html']; ?>
/spacer.gif" WIDTH=16 HEIGHT=1></TD>
		<TD>
			<IMG SRC="<?php echo $this->_tpl_vars['conf']['images_html']; ?>
/spacer.gif" WIDTH=341 HEIGHT=1></TD>
		<TD>
			<IMG SRC="<?php echo $this->_tpl_vars['conf']['images_html']; ?>
/spacer.gif" WIDTH=17 HEIGHT=1></TD>
		<TD>
			<IMG SRC="<?php echo $this->_tpl_vars['conf']['images_html']; ?>
/spacer.gif" WIDTH=17 HEIGHT=1></TD>
		<TD>
			<IMG SRC="<?php echo $this->_tpl_vars['conf']['images_html']; ?>
/spacer.gif" WIDTH=2 HEIGHT=1></TD>
	</TR>
	<TR>
		<TD COLSPAN=3 ROWSPAN=3>
			<IMG SRC="<?php echo $this->_tpl_vars['conf']['images_html']; ?>
/result_01.jpg" WIDTH=368 HEIGHT=38></TD>
		<TD COLSPAN=3>
			<IMG SRC="<?php echo $this->_tpl_vars['conf']['images_html']; ?>
/result_02.jpg" WIDTH=36 HEIGHT=10></TD>
	</TR>
	<TR>
		<TD COLSPAN=2>
			<IMG SRC="<?php echo $this->_tpl_vars['conf']['images_html']; ?>
/result_03.jpg" WIDTH=34 HEIGHT=2></TD>
		
    <TD ROWSPAN=3 bgcolor="#FF0000" valign="top"> <IMG SRC="<?php echo $this->_tpl_vars['conf']['images_html']; ?>
/result_04.jpg" WIDTH=2 HEIGHT=356></TD>
	</TR>
	<TR>
		
    <TD COLSPAN=2><IMG SRC="<?php echo $this->_tpl_vars['conf']['images_html']; ?>
/atras_cerrar.jpg" WIDTH=34 HEIGHT=26 border="0" USEMAP="#atras_cerrar"></TD>

	</TR>
	<TR>
		
    <TD ROWSPAN=3 bgcolor="#FF0000"> <IMG SRC="<?php echo $this->_tpl_vars['conf']['images_html']; ?>
/result_06.jpg" WIDTH=11 HEIGHT=346></TD>
		
    <TD bgcolor="ffebde"> <IMG SRC="<?php echo $this->_tpl_vars['conf']['images_html']; ?>
/result_07.jpg" WIDTH=16 HEIGHT=328></TD>
		
    <TD COLSPAN=2 bgcolor="ffe7de" valign = top>
	  <table width="356" >
        <tr> 
          <td valign="bottom" height="20" colspan="6" align = center > 
		   
            <div align="center"><b><font size="2" face="Verdana, Arial, Helvetica, sans-serif">ENCUESTAS 
              ANTERIORES</font></b></div>
          </td>
        </tr>
        <tr> 
          <td colspan="5" height="10">&nbsp;</td>
        </tr>

		<?php if ($this->_tpl_vars['mostrar'] == "categ"): ?>
		   <?php if (isset($this->_sections["resul"])) unset($this->_sections["resul"]);
$this->_sections["resul"]['name'] = "resul";
$this->_sections["resul"]['loop'] = is_array($this->_tpl_vars['aactivas']) ? count($this->_tpl_vars['aactivas']) : max(0, (int)$this->_tpl_vars['aactivas']);
$this->_sections["resul"]['show'] = true;
$this->_sections["resul"]['max'] = $this->_sections["resul"]['loop'];
$this->_sections["resul"]['step'] = 1;
$this->_sections["resul"]['start'] = $this->_sections["resul"]['step'] > 0 ? 0 : $this->_sections["resul"]['loop']-1;
if ($this->_sections["resul"]['show']) {
    $this->_sections["resul"]['total'] = $this->_sections["resul"]['loop'];
    if ($this->_sections["resul"]['total'] == 0)
        $this->_sections["resul"]['show'] = false;
} else
    $this->_sections["resul"]['total'] = 0;
if ($this->_sections["resul"]['show']):

            for ($this->_sections["resul"]['index'] = $this->_sections["resul"]['start'], $this->_sections["resul"]['iteration'] = 1;
                 $this->_sections["resul"]['iteration'] <= $this->_sections["resul"]['total'];
                 $this->_sections["resul"]['index'] += $this->_sections["resul"]['step'], $this->_sections["resul"]['iteration']++):
$this->_sections["resul"]['rownum'] = $this->_sections["resul"]['iteration'];
$this->_sections["resul"]['index_prev'] = $this->_sections["resul"]['index'] - $this->_sections["resul"]['step'];
$this->_sections["resul"]['index_next'] = $this->_sections["resul"]['index'] + $this->_sections["resul"]['step'];
$this->_sections["resul"]['first']      = ($this->_sections["resul"]['iteration'] == 1);
$this->_sections["resul"]['last']       = ($this->_sections["resul"]['iteration'] == $this->_sections["resul"]['total']);
?>
		   	<tr> 
          		<td height="26" colspan="4"><b><a href="<?php echo $this->_tpl_vars['url']; ?>
/allsurveys.php?modo=listadcat&cid=<?php echo $this->_tpl_vars['aactivas'][$this->_sections['resul']['index']]['cid']; ?>
"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $this->_tpl_vars['aactivas'][$this->_sections['resul']['index']]['category']; ?>
</font></a></b></td>
        	</tr>
		   <?php endfor; endif; ?>
		<?php endif; ?>
		
		<?php if ($this->_tpl_vars['mostrar'] == "porcat"): ?>
		   <?php if (isset($this->_sections["resul"])) unset($this->_sections["resul"]);
$this->_sections["resul"]['name'] = "resul";
$this->_sections["resul"]['loop'] = is_array($this->_tpl_vars['encues']) ? count($this->_tpl_vars['encues']) : max(0, (int)$this->_tpl_vars['encues']);
$this->_sections["resul"]['show'] = true;
$this->_sections["resul"]['max'] = $this->_sections["resul"]['loop'];
$this->_sections["resul"]['step'] = 1;
$this->_sections["resul"]['start'] = $this->_sections["resul"]['step'] > 0 ? 0 : $this->_sections["resul"]['loop']-1;
if ($this->_sections["resul"]['show']) {
    $this->_sections["resul"]['total'] = $this->_sections["resul"]['loop'];
    if ($this->_sections["resul"]['total'] == 0)
        $this->_sections["resul"]['show'] = false;
} else
    $this->_sections["resul"]['total'] = 0;
if ($this->_sections["resul"]['show']):

            for ($this->_sections["resul"]['index'] = $this->_sections["resul"]['start'], $this->_sections["resul"]['iteration'] = 1;
                 $this->_sections["resul"]['iteration'] <= $this->_sections["resul"]['total'];
                 $this->_sections["resul"]['index'] += $this->_sections["resul"]['step'], $this->_sections["resul"]['iteration']++):
$this->_sections["resul"]['rownum'] = $this->_sections["resul"]['iteration'];
$this->_sections["resul"]['index_prev'] = $this->_sections["resul"]['index'] - $this->_sections["resul"]['step'];
$this->_sections["resul"]['index_next'] = $this->_sections["resul"]['index'] + $this->_sections["resul"]['step'];
$this->_sections["resul"]['first']      = ($this->_sections["resul"]['iteration'] == 1);
$this->_sections["resul"]['last']       = ($this->_sections["resul"]['iteration'] == $this->_sections["resul"]['total']);
?>
				<tr> 
          			<td height="26" colspan="4"><b><a href="<?php echo $this->_tpl_vars['url']; ?>
/results.php?sid=<?php echo $this->_tpl_vars['encues'][$this->_sections['resul']['index']]['sid']; ?>
"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $this->_tpl_vars['encues'][$this->_sections['resul']['index']]['name']; ?>
</font></a></b></td>
        		</tr>		  
		   <?php endfor; endif; ?>
		<?php endif; ?>
        <tr> 
          <td colspan="4">&nbsp;</td>
        </tr>
        <tr> 
          <td width="130" height="32">&nbsp;</td>
          <td width="140" height="32">&nbsp;</td>
          <td width="70" height="32"> 

          </td>
        </tr>
      </table>
    
	</TD>
		
    <TD bgcolor="ffe7de"></TD>
	</TR>
	<TR>
		<TD COLSPAN=2 ROWSPAN=2>
			<IMG SRC="<?php echo $this->_tpl_vars['conf']['images_html']; ?>
/result_10.jpg" WIDTH=357 HEIGHT=18></TD>
		<TD>
			<IMG SRC="<?php echo $this->_tpl_vars['conf']['images_html']; ?>
/result_11.jpg" WIDTH=17 HEIGHT=2></TD>
		<TD COLSPAN=2>
			<IMG SRC="<?php echo $this->_tpl_vars['conf']['images_html']; ?>
/result_12.jpg" WIDTH=19 HEIGHT=2></TD>
	</TR>
	<TR>
		<TD COLSPAN=3>
			<IMG SRC="<?php echo $this->_tpl_vars['conf']['images_html']; ?>
/result_13.jpg" WIDTH=36 HEIGHT=16></TD>
	</TR>
	
</TABLE>